<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div id = "navTop">
	<div class = "wp998">
		<div id = "channels">
			<ul><li class = "item"><a href = "${initParam.webRootUrl}">首页</a></li></ul>
		</div>
		<div id = "CW_UserBar">
			<c:choose>
				<c:when test="${visitorStatus.login}">
					<em>${visitorStatus.name}</em>,您好 
					<span class = "control_select">
						<a href = "${visitorUrls.home}" title = "我的空间">我的空间</a> 
						<ul class = "cw_content" style = "display: none;">
							<li class = "msg_"><a href = "${visitorUrls.adminInbox}">站内留言</a></li>
							<li class = "blog_"><a href = "${visitorUrls.blog}">我的博客</a></li>
							<li class = "friends_"><a href = "${visitorUrls.fellow}">我关注的人</a></li>
							<li class = "favorites_"><a href = "${visitorUrls.favorites}">我的收藏夹</a></li>
							<li class = "profile_"><a href = "${visitorUrls.adminProfile}">个人资料修改</a></li>
							<li class = "portrait_"><a href = "${visitorUrls.adminPortrait}">更改我的头像</a></li>
						</ul>
					</span>
					| <a id = "logout" href = "/user/logout?goto_page=">退出</a>
					<script>
						$().ready(function() {
							$('#logout').attr('href', "/user/logout?goto_page=" + location.href);
						});
					</script>
				</c:when>
				<c:otherwise>
					当前访客身份：游客 [ <a href="${initParam.webRootUrl}account/login.jsp">登录</a> | <a href="${initParam.webRootUrl}account/register.jsp">注册</a> ]
				</c:otherwise>
			</c:choose>
		</div>
		<div class = "clear"></div>
	</div>
</div>
